package com.neusoft.nepg.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neusoft.common.domain.GriderTest;
import com.neusoft.nepg.mapper.GriderTestMapper;
import com.neusoft.nepg.service.GriderTestService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;



@Service
public class GriderTestServiceImp extends ServiceImpl<GriderTestMapper, GriderTest> implements GriderTestService {
    @Resource
    private GriderTestMapper griderTestMapper;
    @Override
    public int countMesg() {
        return griderTestMapper.countMesg();
    }

    @Override
    public int countWell() {
        return griderTestMapper.countWell();
    }

    @Override
    public int countCapital() {
        return griderTestMapper.countCapital();
    }

    @Override
    public int countBigCity() {
        return griderTestMapper.countBigCity();
    }

    @Override
    public GriderTest findTest(int id) {
        if(griderTestMapper.findTest(id).size()!=0)
        return griderTestMapper.findTest(id).get(0);
        else return null;
    }

    @Override
    public Boolean saveMsg(GriderTest msg) {
        return griderTestMapper.save(msg);
    }
}
